<!-- 项目概括 -->
<template>
	<view>
		<view class="list_box" @touchstart="touchShow = false" @click="touchShow =false" @touchmove="touchShow = false">
			<view class="oyher_top" id="basic">项目概况</view>
			<view class="basic_box" id="basic">
				<view class="label">
					<view class="label_title">项目名称</view>
					<view class="label_info">{{ model.projectName?model.projectName:'--' }}</view>
				</view>
				<view class="label">
					<view class="label_title">项目编号</view>
					<view class="label_info">{{ model.projectFinalNo?model.projectFinalNo:'--' }}</view>
				</view>
				<view class="label">
					<view class="label_title">经营团队</view>
					<view class="label_info">{{ model.teamName?model.teamName:'--' }}</view>
				</view>
				<view class="label">
					<view class="label_title">业主单位</view>
					<view class="label_info">{{ model.ownerUnitName?model.ownerUnitName:'--' }}</view>
				</view>
				<view class="flex_box">
					<view class="label">
						<view class="label_title">项目承接人</view>
						<view class="label_info">{{model.undertakerName?model.undertakerName:'--'}}</view>
					</view>
					<view class="label">
						<view class="label_title">项目来源</view>
						<view class="label_info">{{model.projectSource_dictText?model.projectSource_dictText:'--'}}</view>
					</view>
				</view>
				
			</view>
			<view class="other_box"></view>
			<view class="oyher_top" id="basic">合同信息</view>
			<view class="basic_box" id="basic">
				<view class="label">
					<view class="label_title">签订单位</view>
					<view class="label_num" @click="onSigningUnit">{{ model.signUnitName?model.signUnitName:'--' }}</view>
				</view>
				<view class="flex_box">
					<view class="label">
						<view class="label_title">收款合同总额(元)</view>
						<view class="label_info">{{model.collectContractAmountMoney !==null?model.collectContractAmountMoney:'--'}}</view>
					</view>
					<view class="label">
						<view class="label_title">付款合同总额(元)</view>
						<view class="label_info">{{model.payContractAmountMoney!==null?model.payContractAmountMoney:'--'}}</view>
					</view>
				</view>
				<view class="flex_box">
					<view class="label">
						<view class="label_title">已回款金额(元)</view>
						<view class="label_info">{{model.realCollectionContractAmountMoney!==null?model.realCollectionContractAmountMoney:'--'}}</view>
					</view>
					<view class="label">
						<view class="label_title">已付款金额(元)</view>
						<view class="label_info">{{model.realPayContractAmountMoney!==null?model.realPayContractAmountMoney:'--'}}</view>
					</view>
				</view>
				<!-- 预留点 -->
				<view class="flex_box">
					<view class="label">
						<view class="label_title">已完成进度</view>
						<view class="label_num">--</view>
					</view>
					<view class="label">
						<view class="label_title">已确认收入</view>
						<view class="label_info">--</view>
					</view>
				</view>
			</view>
			
			<view class="other_box"></view>
			<view class="oyher_top" id="basic">总成本信息</view>
			<view class="basic_box" id="basic">
				<view class="flex_box">
					<view class="label">
						<view class="label_title">实际成本总额(元)</view>
						<view class="label_info">{{model.costAmonut!==null?model.costAmonut:'--'}}</view>
					</view>
					<view class="label">
						<view class="label_title">预算成本总额(元)</view>
						<view class="label_info">{{model.totalProjectBudget!==null?model.totalProjectBudget:'--'}}</view>
					</view>
				</view>
			</view>
			<costTotalMoneyItem :projectId="model.id"></costTotalMoneyItem>
		</view>
	</view>
</template>

<script>
	import costTotalMoneyItem from './costTotalMoneyItem.vue'
	export default {
		props: {
			model: {
				type: [Object],
				default: () => {},
			}
		},
		components:{
			costTotalMoneyItem
		},
		data() {
			return {
				
			}
		},
		methods: {
			// 点击签订单位
			onSigningUnit () {
				this.$emit('onSigningUnit')
			}
		}
	}
</script>

<style lang="less" scoped>
@import url("@/assets/projectStyle.less");
</style>